package com.smart.entity.business;


import com.baomidou.mybatisplus.annotation.TableName;
import com.smart.model.excel.annotation.ExcelField;
import com.smart.model.excel.annotation.ExcelFields;
import com.smart.mybatis.entity.BaseEntity;
import com.smart.mybatis.annotation.Column;
import com.smart.mybatis.enums.QueryType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.FieldNameConstants;
import lombok.NoArgsConstructor;

/**
 * 公司表
 *
 * @author wf
 * @since 2025-06-11 13:15:12
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@FieldNameConstants
@TableName("sys_company")
@ExcelFields({
        @ExcelField(title = "公司名称", attrName = "companyName",  align = ExcelField.Align.CENTER, sort = 1),
        @ExcelField(title = "经度", attrName = "longitude",  align = ExcelField.Align.CENTER, sort = 2),
        @ExcelField(title = "维度", attrName = "latitude",  align = ExcelField.Align.CENTER, sort = 3),
        @ExcelField(title = "区域", attrName = "region",  align = ExcelField.Align.CENTER, sort = 4),
        @ExcelField(title = "统一社会编码", attrName = "socialCode",  align = ExcelField.Align.CENTER, sort = 5),
        @ExcelField(title = "创建时间", attrName = "createDate",  align = ExcelField.Align.CENTER, sort = 6)
})
public class CompanyEntity extends BaseEntity {
	private static final long serialVersionUID = 1L;
	/**
	 * 公司名称
	 */
    @Column(name = "company_name", queryType = QueryType.LIKE, isNull = false)
    private String companyName;
	/**
	 * 关联字典表的层级ID
	 */

    @Column(isNull = false)
    private String dictId;
	/**
	 * 经度
	 */
    private String longitude;
	/**
	 * 维度
	 */
    private String latitude;
	/**
	 * 区域
	 */
    @Column(name = "region", queryType = QueryType.LIKE)
    private String region;
	/**
	 * 统一社会编码
	 */
    @Column(isNull = false)
    private String socialCode;

}
